Q3UnknownBinary_GetData
You can use theQ3UnknownBinary_GetData
function to get the data of an unknown binary object.
TQ3Status Q3UnknownBinary_GetData ( TQ3UnknownObject unknownObject, TQ3UnknownBinaryData *unknownBinaryData);
unknownObject
- An unknown binary object.
unknownBinaryData
- A pointer to an unknown binary data structure.
DESCRIPTION
TheQ3UnknownBinary_GetData
function returns, in thecontents
field of the unknown binary data structure pointed to by theunknownBinaryData
parameter, a pointer to a copy of the contents of the unknown binary object (that is, an unknown object of typekQ3UnknownTypeBinary
) specified by theunknownObject
parameter.Q3UnknownBinary_GetData
also returns, in theobjectType
andsize
fields of the unknown binary data structure, the type of the unknown binary object and the size, in bytes, of the data pointed to by thecontents
field.Your application is responsible for allocating the memory occupied by the
unknownBinaryData
parameter.Q3UnknownBinary_GetData
allocates memory to hold the data pointed to by thecontents
field of that structure. You must make certain to callQ3UnknownBinary_EmptyData
to release the memory allocated byQ3UnknownBinary_GetData
when you are finished using the data.